﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace BasketballAI.Infrastructure.Entity
{
     public class IItem 
    {
        #region Members           
        private Point positionOnCourt;
        private BasketballAI.Infrastructure.Global.AstarPosition aStarPosition;       
          
        #endregion
        
        #region Constructors     
        #endregion

        #region Properties      
        public Point PositionOnCourt
        {
            get { return positionOnCourt; }
            set {
                Point lastPosition = positionOnCourt;
                positionOnCourt = value;
                if (Global.Game != null && lastPosition != positionOnCourt)

                    Global.Game.ItemMoveEvent(this, lastPosition); 
                    
                }
        }
        public BasketballAI.Infrastructure.Global.AstarPosition AStarPosition
        {
            get { return aStarPosition; }
            set { aStarPosition = value; }
        }   
        #endregion

        #region Methods   
        
      

        #endregion
    }
}
